/**
 * 
 */
package org.cuatrovientos.imcexercise;
import java.util.Scanner;

/**
 * @author Axel Brinck
 *
 */
public class ImcExercise {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Float weight = 0f;
		Float height = 0f;
		Float imc = 0f;
		String input = "";
		
		Scanner reader = new Scanner(System.in);
		System.out.println("Program, that shows you your IMC:");
		System.out.print("Please, introduce your weight in Kg: ");
		
		input = reader.nextLine();
		weight = (float)Integer.parseInt(input);
		
		System.out.print("Please, introduce your height in cm: ");
		input = reader.nextLine();
		height = (float)Integer.parseInt(input);
		
		imc = (weight/(height*height)*10000);
		
		System.out.println("Your IMC is: " + imc);
		
		if (imc < 16) {
			System.out.println("Eat more");
		}
		if (imc >= 16 && imc < 25) {
			System.out.println("You're OK");
		}
		if (imc >= 25 && imc < 30) {
			System.out.println("You have care more about yourself");
		}
		if (imc >= 30) {
			System.out.println("Go to the hospitall");
		}
		
	}

}
